package com.example.my_self_view.calendar

import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.example.my_self_view.util.TimeUtil
import java.util.Calendar

/**
 * @dsc     简介
 * @Author  LiWeiZhong
 * @Date    2025/2/28 9:56
 * @Version 1.0
 */
class CalendarViewModel: ViewModel() {

    private val _monthData = MutableLiveData<Pair<Int, Int>> ()
    fun getMonthData() = _monthData

    private var today = TimeUtil.TIME_FORMAT("yyyy-MM-dd", Calendar.getInstance().time.time)
    fun getToday() = today
    fun setToday(date: String) {
        today = date
    }


}